package cn.tedu.springmvc.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * Spring MVC的配置类，类名不重要，组件扫描必须配置在此类，此类必须实现WebMvcConfigurer
 */
@Configuration
@EnableWebMvc
@ComponentScan("cn.tedu.springmvc")
public class SpringMvcConfig implements WebMvcConfigurer {
}
